# $Id: PKGBUILD 84770 2013-02-24 13:15:59Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=cuyo
pkgver=2.0.0
pkgrel=1
epoch=1
pkgdesc="Tetris-style puzzle game for up to two players with a twist"
arch=('i686' 'x86_64')
url="http://www.karimmi.de/cuyo/"
license=('GPL')
depends=('desktop-file-utils' 'hicolor-icon-theme' 'sdl' 'sdl_mixer' 'sdl_image' 'xdg-utils')
makedepends=('patch')
install=$pkgname.install
changelog=$pkgname.changelog
source=(http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz \
        $pkgname.diff)
sha256sums=('531cfb989087199f643ac4b18ff9cc50793cc3fa07ee06f394f73d153c09ae34'
            'efceed1489c551f5ae8909df3ad57f302f8105cbb1e735d8ece44269e886ce7c')

build() {
  cd ${srcdir}/$pkgname-$pkgver

  patch -Np0 -i ${srcdir}/$pkgname.diff

  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver

  make DESTDIR=${pkgdir} install
}
